package com.example.mangroves.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import nonapi.io.github.classgraph.json.Id;

import java.util.Date;

@TableName("phenology")
public class Phenology {
    @TableId(value = "id", type = IdType.AUTO) // 指定自增主键
    private Integer id;  // 使用Integer以支持null值

    @TableField("time")
    private Date time;

    @TableField("ndvi")
    private double ndvi;

    @TableField("roi_ndvi")
    private double roiNdvi;

    @TableField("gcc")
    private double gcc;

    @TableField("gvi")
    private double gvi;

    @TableField("rcc")
    private double rcc;

    @TableField("bcc")
    private double bcc;

    @TableField("low_lai")
    private double lowlai;

    @TableField("fvc")
    private double fvc;


    public Phenology() {
    }

    public Phenology(int id, Date time, double ndvi, double roiNdvi, double gcc, double gvi, double rcc, double bcc, double lowlai, double fvc) {
        this.id = id;
        this.time = time;
        this.ndvi = ndvi;
        this.roiNdvi = roiNdvi;
        this.gcc = gcc;
        this.gvi = gvi;
        this.rcc = rcc;
        this.bcc = bcc;
        this.lowlai = lowlai;
        this.fvc = fvc;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return time
     */
    public Date getTime() {
        return time;
    }

    /**
     * 设置
     * @param time
     */
    public void setTime(Date time) {
        this.time = time;
    }

    /**
     * 获取
     * @return ndvi
     */
    public double getNdvi() {
        return ndvi;
    }

    /**
     * 设置
     * @param ndvi
     */
    public void setNdvi(double ndvi) {
        this.ndvi = ndvi;
    }

    /**
     * 获取
     * @return roiNdvi
     */
    public double getRoiNdvi() {
        return roiNdvi;
    }

    /**
     * 设置
     * @param roiNdvi
     */
    public void setRoiNdvi(double roiNdvi) {
        this.roiNdvi = roiNdvi;
    }

    /**
     * 获取
     * @return gcc
     */
    public double getGcc() {
        return gcc;
    }

    /**
     * 设置
     * @param gcc
     */
    public void setGcc(double gcc) {
        this.gcc = gcc;
    }

    /**
     * 获取
     * @return gvi
     */
    public double getGvi() {
        return gvi;
    }

    /**
     * 设置
     * @param gvi
     */
    public void setGvi(double gvi) {
        this.gvi = gvi;
    }

    /**
     * 获取
     * @return rcc
     */
    public double getRcc() {
        return rcc;
    }

    /**
     * 设置
     * @param rcc
     */
    public void setRcc(double rcc) {
        this.rcc = rcc;
    }

    /**
     * 获取
     * @return bcc
     */
    public double getBcc() {
        return bcc;
    }

    /**
     * 设置
     * @param bcc
     */
    public void setBcc(double bcc) {
        this.bcc = bcc;
    }

    /**
     * 获取
     * @return lowlai
     */
    public double getLowlai() {
        return lowlai;
    }

    /**
     * 设置
     * @param lowlai
     */
    public void setLowlai(double lowlai) {
        this.lowlai = lowlai;
    }

    /**
     * 获取
     * @return fvc
     */
    public double getFvc() {
        return fvc;
    }

    /**
     * 设置
     * @param fvc
     */
    public void setFvc(double fvc) {
        this.fvc = fvc;
    }

    @Override
    public String toString() {
        return "Phenology{id = " + id + ", time = " + time + ", ndvi = " + ndvi + ", roiNdvi = " + roiNdvi + ", gcc = " + gcc + ", gvi = " + gvi + ", rcc = " + rcc + ", bcc = " + bcc + ", lowlai = " + lowlai + ", fvc = " + fvc + "}";
    }
}
